﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Com.CMS263.BLL;
using Com.CMS263.Util;

namespace Com.CMS263.Web.manage
{
    public partial class content : System.Web.UI.Page
    {
        public string power = "";
        public AdminUserBLL aubll = new AdminUserBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

            BindTree();
            AdminLoginInfo info = AdminLoginCookie.GetLoginInfo();
            Com.CMS263.PO.AdminUser au = new Com.CMS263.PO.AdminUser();
            au = aubll.GetAdminUserByID(info.UserID);
            power = new AdminRoleBLL().GetAdminPowerByID(au.roleID);
        }
        public void BindTree()
        {
            this.myMenu.Text = FileUtil.GetMenuText(Server.MapPath("/manage/menutext/menu.txt"));
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            BindTree();
        }
    }
}
